package com.ys.data.api.controller;

import com.common.pojo.Result;
import com.ys.data.client.AuthClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import com.common.vo.UserCodeVo;

@Api(value = "用户中心Api")
@RestController
@RequestMapping("api/userCode")
public class UserCodeController {

    @Resource
    private AuthClient authClient;

    @ApiOperation(value = "用户中心新增方法",notes = "新增")
    @PostMapping("/save")
    public Result<?> findOrderTest(@Validated @RequestBody UserCodeVo userCodeVo){
        Result result = new Result();
        result.OK(authClient.saveUserCode(userCodeVo));
        return result;
    }
}
